package com.example.xm.interfaces.own;

import com.example.xm.bean.OwnBean.UserBean;
import com.example.xm.bean.OwnBean.UserUpdateBean;
import com.example.xm.interfaces.IBasePresenter;
import com.example.xm.interfaces.IBaseView;

import java.util.Map;

public interface IOwn {
    interface View extends IBaseView {
        void updateUserInfoReturn(UserUpdateBean result);
    }

    interface Presenter extends IBasePresenter<View> {
        void updateUserInfo(String token,Map<String, String> map);
    }

    interface LoginView extends IBaseView {
        //登录
        void loginReturn(UserBean userBean);

        //注册
        void registerReturn(UserBean userBean);
    }

    interface LoginPersenter extends IBasePresenter<LoginView> {
        //登录
        void login(Map<String, String> map);

        //注册
        void register(Map<String, String> map);
    }
}
